package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 家具订单信息对象 tb_order
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
public class TbOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单唯一标识ID */
    @Excel(name = "订单唯一标识ID")
    private Long orderId;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    @Excel(name = "订单数量")
    private Long orderCount;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 租赁开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租赁开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rentalStartDate;

    /** 租赁结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租赁结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rentalEndDate;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalAmount;

    /** 押金金额 */
    @Excel(name = "押金金额")
    private BigDecimal depositAmount;

    /** 实际配送费用 */
    @Excel(name = "实际配送费用")
    private BigDecimal deliveryFee;

    /** 配送地址 */
    @Excel(name = "配送地址")
    private String deliveryAddress;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    /** 第三方支付交易号 */
    @Excel(name = "第三方支付交易号")
    private String transactionId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long orderStatus;

    /** 取消原因 */
    @Excel(name = "取消原因")
    private String cancelReason;

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public Long getOrderCount() {
        return orderCount;
    }
    public void setOrderCount(Long orderCount) {
        this.orderCount = orderCount;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setOrderTime(Date orderTime)
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime()
    {
        return orderTime;
    }
    public void setRentalStartDate(Date rentalStartDate)
    {
        this.rentalStartDate = rentalStartDate;
    }

    public Date getRentalStartDate()
    {
        return rentalStartDate;
    }
    public void setRentalEndDate(Date rentalEndDate)
    {
        this.rentalEndDate = rentalEndDate;
    }

    public Date getRentalEndDate()
    {
        return rentalEndDate;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setDepositAmount(BigDecimal depositAmount)
    {
        this.depositAmount = depositAmount;
    }

    public BigDecimal getDepositAmount()
    {
        return depositAmount;
    }
    public void setDeliveryFee(BigDecimal deliveryFee)
    {
        this.deliveryFee = deliveryFee;
    }

    public BigDecimal getDeliveryFee()
    {
        return deliveryFee;
    }
    public void setDeliveryAddress(String deliveryAddress)
    {
        this.deliveryAddress = deliveryAddress;
    }

    public String getDeliveryAddress()
    {
        return deliveryAddress;
    }
    public void setPaymentMethod(String paymentMethod)
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod()
    {
        return paymentMethod;
    }
    public void setPaymentTime(Date paymentTime) 
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime() 
    {
        return paymentTime;
    }
    public void setTransactionId(String transactionId) 
    {
        this.transactionId = transactionId;
    }

    public String getTransactionId() 
    {
        return transactionId;
    }
    public void setOrderStatus(Long orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus() 
    {
        return orderStatus;
    }
    public void setCancelReason(String cancelReason) 
    {
        this.cancelReason = cancelReason;
    }

    public String getCancelReason() 
    {
        return cancelReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("orderNo", getOrderNo())
                .append("orderCount", getOrderCount())
            .append("orderTime", getOrderTime())
            .append("rentalStartDate", getRentalStartDate())
            .append("rentalEndDate", getRentalEndDate())
            .append("totalAmount", getTotalAmount())
            .append("depositAmount", getDepositAmount())
            .append("deliveryFee", getDeliveryFee())
            .append("deliveryAddress", getDeliveryAddress())
            .append("paymentMethod", getPaymentMethod())
            .append("paymentTime", getPaymentTime())
            .append("transactionId", getTransactionId())
            .append("orderStatus", getOrderStatus())
            .append("cancelReason", getCancelReason())
            .append("remark", getRemark())
            .toString();
    }
}
